package com.ych.modules.base.dbEntity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2020/12/15
 * Time: 10:57
 * Description:
 */
@Data
@TableName("t_user_raffle_ticket")
@ApiModel(value = "TUserRaffleTicketEntity", description = "数据库-抽奖券表")
public class TUserRaffleTicketEntity extends AbstractPageEntity {
    @TableId("ticket_id")
    @ApiModelProperty(value = "主键", dataType = "String", notes = "主键")
    private String ticketId;

    @TableField("user_id")
    @ApiModelProperty(value = "用户id", dataType = "String", notes = "用户id")
    private String userId;

    @TableField("redeem_code")
    @ApiModelProperty(value = "礼券码，兑奖码 ", dataType = "String", notes = "礼券码，兑奖码 ")
    private String redeemCode;

    @TableField("is_checked")
    @ApiModelProperty(value = "是否已兑换 0：是 1：否", dataType = "String", notes = "是否已兑换 0：是 1：否")
    private String isChecked;

    @TableField("code_init")
    @ApiModelProperty(value = "是否选择了兑奖码0：是 1：否  选中后不可更改", dataType = "String", notes = "是否选择了兑奖码0：是 1：否  选中后不可更改")
    private String codeInit;

    @TableField("jackpot_id")
    @ApiModelProperty(value = "参与的奖池活动id", dataType = "String", notes = "参与的奖池活动id")
    private String jackpotId;

    @TableField("brokerage_amount")
    @ApiModelProperty(value = "中奖金额", dataType = "BigDecimal", notes = "中奖金额")
    private BigDecimal brokerageAmount;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间", dataType = "Date", notes = "创建时间")
    private Date                       createTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "参与的奖池信息", dataType = "TRaffleTicketJackpotEntity", notes = "参与的奖池信息")
    private TRaffleTicketJackpotEntity jackpotEntity;
}
